Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Jul 1, 2025

Hi! I wrote my solution focusing on the elevator demand, as other states are not relevant to the problem. I made two schemas for this solution:

Elevator

Represents an elevator in the system:

  • id: Unique identifier
  • building_id: Identifier for the building
  • max_floor: Maximum floor the elevator can reach
  • min_floor: Minimum floor the elevator can reach

ElevatorDemand

Represents a demand for an elevator:

  • id: Unique identifier
  • timestamp: When the demand occurred
  • floor: Which floor the demand came from
  • direction: Whether the person wanted to go up or down
  • elevator_id: Which elevator responded to this demand (optional)

The application was written in Python using FastAPI and SQLAlchemy for the DB, FastAPI was my first choice because it's a extremely powerful framework that not only is fast but it allows for fast development thanks to Pydantic you get validation, serialization, docs, etc out of the box. The entire web app is in a Docker file and uses Alembic for migrations. Also (with the help of AI) wrote some tests using Pytest with mocks. As with any FastAPI application, you can see the entire API docs in http://localhost:8000/docs . You run the server with the docker_run.bat or .sh script in the scripts folder.

Check documentation.md for setup instructions and more details. If you have any questions please let me know

@github-actions
Copy link

github-actions bot commented Jul 1, 2025

AI Detection Analysis 🔍

Confidence Score: 60%

Reasoning: The pull request presents a comprehensive, well-structured, and clearly explained solution to a relatively complex problem, complete with Docker setup, project architecture, testing strategy, detailed API documentation, and database initialization. While the depth and completeness of the project could suggest human-level expertise and experience, certain parts of the written commentary (especially the PR description), alongside some signs of formal tone and phrasing, indicate potential support from AI tools—particularly for less domain-specific aspects like documentation and boilerplate code generation.

Key Indicators:

AI-like Indicators:

  • The PR description includes phrases like “(with the help of AI)” suggesting involvement of an AI assistant.
  • Polished and formal phrasing is used in the description (“extremely powerful framework,” “validation, serialization, docs, etc out of the box”), which AI models are known to generate.
  • File structure consistency and best practices, such as comprehensive Docker and CI-oriented scripts, can be aided through AI code generators.
  • Generic segments such as Dockerfile, alembic.ini, and Alembic env.py are typical of what AI (e.g., GitHub Copilot or ChatGPT) can produce with default templates.

Human-like Indicators:

  • The presence of intricate domain-specific logic and integration between components (e.g., FastAPI routes, SQLAlchemy models, Alembic scripts) suggests familiarity with full-stack backend development.
  • Sample data generation, mocking strategies in tests, and DB schema design appear nuanced and customized, likely beyond an AI-only effort.
  • Usage of environment variables, network aliases, container restart policies—show deep practical experience.

Overall, the PR is more indicative of a knowledgeable human developer possibly assisted by AI in parts (like documentation, templates, boilerplate), which makes the authorship ambiguous and hybrid.

✅ No strong indicators of AI generation detected

@ghost ghost closed this by deleting the head repository Sep 16, 2025
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants